package com.centaline.androidsalesblog.api.sale;

import com.centaline.androidsalesblog.api.SaleApi;
import com.centaline.androidsalesblog.model.responseobject.StaffListRo;
import com.centanet.framework.interfaces.IResponseListener;

/**
 * 经纪人
 * Created by Lihq on 16/3/25.
 */
public class EstateStaffApi extends SaleApi<StaffListRo> {

    private String staffNo;
    private String postId;
    private String estateCode;
    private String startIndex="";
    private String pageCount="";
    private String sort="";

    public EstateStaffApi(Class<?> tag, Class<StaffListRo> aClass, IResponseListener<StaffListRo> iResponseListener) {
        super(tag, aClass, iResponseListener);
    }

    public void setStaffNo(String staffNo) {
        this.staffNo = staffNo;
    }

    public void setPostId(String postId) {
        this.postId = postId;
    }

    public void setEstateCode(String estateCode) {
        this.estateCode = estateCode;
    }

    public void setStartindex(String startIndex) {
        this.startIndex = startIndex;
    }

    public void setPagecount(String pageCount) {
        this.pageCount = pageCount;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    @Override
    protected void setParams() {
        putParams("staffNo", staffNo);
        putStringParams("postId", postId);
        putParams("estateCode",estateCode);
        putParams("startindex",startIndex);
        putParams("pagecount",pageCount);
        putParams("sort",sort);
    }

    @Override
    protected String getPath() {
        return "Staff";
    }
}
